<!--script type='text/javascript' src='<?php echo base_url() ?>skin/js/jquery.fancybox.pack.js'></script-->
<!--link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>skin/css/jquery.fancybox.css" /--> 
<!--a class="fancybox fancybox.iframe" href="http://congnghebaoviet.net/home/nd_gopy/show/14"-->

 <!-- fancyboxx-->
   <script>
        $(document).ready(function() {
        $('.sp_noibat').fancybox();
        $(".fancybox").fancybox({
		maxWidth	: 800,
		maxHeight	: 600,
		fitToView	: false,
		width		: '80%',
		height		: '70%',
		autoSize	: false,
		closeClick	: false,
		openEffect	: 'none',
		closeEffect	: 'none'
	   });  
        });
    </script>
   
   <!--fancyboxx-->
<?php
if(!empty($gopy)){
   echo '   
   <div class="col-right fRight">
									<div class="col-right-inner clearfix">
										<p><a title="" href="'.base_url().'gopy/danhsach"><img alt="" src="skin/images/bg_contact.png"/></a></p>
										<p class="name">
											<span class="name-contact"><strong class="name-inner">'.$gopy->tieude.'</strong></span>
											<span class="link-trang">
												<a class="page-first" title="" href="#"><</a>
												<a class="page-last" title="" href="#">></a>
											</span>
										</p>
										<p>
                                        '.$gopy->noidung.'
                                        </p>
										<p><span class="chiase"><a href="'.base_url().'gopy/danhsach">Xem thêm</a></span></p>
										
                                        <!--************************* share*************************************-->                                
                                            <div id="groupsocial">
                                                <ul>
                                                    <li class="lisharebutton" >
                                                    <a class="sharebutton" id="facebook" title="facebook" onclick="functionshare(\'facebook\')"></a>
                                                    </li>
                                                    <li class="lisharebutton" >
                                                    <a class="sharebutton" id="twitter" title="twitter" onclick="functionshare(\'twitter\')"></a>
                                                    </li>
                                                    <li class="lisharebutton" >
                                                    <a class="sharebutton" id="googleshare" title="googleshare" onclick="functionshare(\'googleshare\')"></a>
                                                    </li>
                                                    <li class="lisharebutton" >
                                                    <a class="sharebutton" id="printf" title="printf" onclick="javascript:window.print()"></a>
                                                    </li>
                                                </ul>
                                            </div>
                                            
                                            <div id="fb-root"></div>
                                            <script>
                                                (function(d, s, id) {
                                                    var js, fjs = d.getElementsByTagName(s)[0];
                                                    if (d.getElementById(id)) return;
                                                    js = d.createElement(s); js.id = id;
                                                    js.src = "//connect.facebook.net/<?php if($rear == \'_en\')echo \'en_US\'; else echo \'vi_VN\'; ?>/all.js#xfbml=1";
                                                    fjs.parentNode.insertBefore(js, fjs);
                                                }(document, \'script\', \'facebook-jssdk\'));
                                            </script>
                                            <div class="fb-like" data-href="'.base_url().$this->uri->uri_string().'.html" data-send="true" data-width="450" data-show-faces="true">
                                            </div>
                                            <!--*****************share*****************************************-->
                                        
                                        
									</div>
								</div>
                                
   
   
   ';  
}
?>

          <script>
            $(document).ready(function(){
            	var url = window.location.href;
            	var title = $('title').text();
            	title = escape(title);
            	var likeface = '<iframe src="//www.facebook.com/plugins/like.php?href='+url+'&amp;send=false&amp;layout=button_count&amp;width=80&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:21px;" allowTransparency="true"></iframe>';
            	$('#likeface').html(likeface);
            	$("li.lisharebutton").each(function() {
            		$(this).css("opacity", "0.9");
            	});
            	$("li.lisharebutton").hover(function() {
            		$(this)
            			.stop().fadeTo(500, 1)
            			.siblings().stop().fadeTo(500, 0.2);
            	}, function() { // Mouse out
            		$(this)
            			.stop().fadeTo(500, 0.9)
            			.siblings().stop().fadeTo(500, 0.9);
            	});
            });
            
            function functionshare(id){
            	var url = window.location.href;
            	var title = $('title').text();
            	title = escape(title);
                switch(id){
                	case 'facebook':
                        var facebookurl = 'http://www.facebook.com/sharer/sharer.php?u='+url;
                        window.open(facebookurl,'','width=600,height=350,toolbar=no,scrollbars=no,left=200,screenX=200,screenY=200,top=200');
                        break;
                	case 'twitter':
                        var twitterurl = 'http://twitter.com/intent/tweet?source=webclient&text='+url;
                        window.open(twitterurl,'','width=600,height=350,toolbar=no,scrollbars=no,top=200,left=200');
                        break;
                    case 'googleshare':
                        var googleshareurl = 'https://plus.google.com/share?url='+url;
                        window.open(googleshareurl,'','width=600,height=350,toolbar=no,scrollbars=no,top=200,left=200');
                        break;
                    case 'printf':
                        var printfurl = 'javascript:window.print()';
                        $('#printf').attr('href',''+printfurl+'');
                        break;
                    default:
                		break;
            	}
            }
</script>
    
    
 
    
    
    